<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <meta http-equiv="X-UA-Compatible" content="ie=edge">
  <title>Document</title>
  <link rel="stylesheet" href="./css/loading.css">
  <link rel="stylesheet" href="./css/element-ui.css">
  <link rel="stylesheet" href="./css/login.css">
</head>
<body>
  <div id="appLoading">
   <img src="./images/loading.gif" width="50px" height="50px">
   <div class="loading-text">加载中......</div>
  </div>
  <div id="login" style="display:none">
    <div class="aver"></div>
    <el-input
      placeholder="请输入用户名"
      v-model="username">
      <img slot="prefix" class="log-user" src="./images/icon/user.png"></img>
    </el-input>
    <el-input
      placeholder="请输入密码"
      type="password"
      v-model="passwd">
      <img slot="prefix" class="log-passwd" src="./images/icon/ts-lock.png"></img>
    </el-input>
    <el-button type="primary">登陆</el-button>
  </div>
</body>
  <script src="./js/vue.min.js"></script>
  <script src="./js/element-ui.js"></script>
  <script src="./js/axios.min.js"></script>
  <script type="text/javascript">
    new Vue({
      el: "#login",
      data: function() {
        return {
          username: "",
          passwd: ""
        }
      },
      mounted(){
       document.getElementById('login').style.display = 'block';
       document.getElementById('appLoading').style.display = 'none';
      }
    })
  </script>
</html>
